package cn.sdormitory.report.vo;

import cn.hutool.core.date.DatePattern;
import cn.sdormitory.common.utils.poi.ExcelTitle;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author : yy
 * @date: 2025/4/12 8:41
 * @description:
 */
@Data
public class MorningExercisesStaVO {
    @ExcelTitle(title = "班级")
    @ExcelProperty("班级")
    private String className;

    @ExcelTitle(title = "学生")
    @ExcelProperty("学生")
    private String studentNames;

    @ExcelTitle(title = "类型")
    @ExcelProperty("类型")
    private String type;

    @ExcelTitle(title = "登记日期")
    @ExcelProperty("登记日期")
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN, timezone = "GMT+8")
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private Date registrantDate;

    @ExcelTitle(title = "登记人")
    @ExcelProperty("登记人")
    private String registrantUser;
}
